
package com.edclol.work.pojo;

import java.util.Date;

/**
 *
 */

public class KafkaBean {

    private String table_name;
    private String region_code;
    private String region_name;
    private String street_code;
    private String street_name;
    private String community_code;
    private String community_name;
    private String court_code;
    private String court_name;
    private String id;
    private int in_out_type;
    private int hour;
    private Date event_time;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        KafkaBean bean = (KafkaBean) o;

        if (in_out_type != bean.in_out_type) return false;
        if (hour != bean.hour) return false;
        if (table_name != null ? !table_name.equals(bean.table_name) : bean.table_name != null)
            return false;
        if (region_code != null ? !region_code.equals(bean.region_code) : bean.region_code != null)
            return false;
        if (region_name != null ? !region_name.equals(bean.region_name) : bean.region_name != null)
            return false;
        if (street_code != null ? !street_code.equals(bean.street_code) : bean.street_code != null)
            return false;
        if (street_name != null ? !street_name.equals(bean.street_name) : bean.street_name != null)
            return false;
        if (community_code != null ? !community_code.equals(bean.community_code) : bean.community_code != null)
            return false;
        if (community_name != null ? !community_name.equals(bean.community_name) : bean.community_name != null)
            return false;
        if (court_code != null ? !court_code.equals(bean.court_code) : bean.court_code != null)
            return false;
        if (court_name != null ? !court_name.equals(bean.court_name) : bean.court_name != null)
            return false;
        if (id != null ? !id.equals(bean.id) : bean.id != null) return false;
        if (event_time != null ? !event_time.equals(bean.event_time) : bean.event_time != null)
            return false;
        return load_date != null ? load_date.equals(bean.load_date) : bean.load_date == null;
    }

    @Override
    public int hashCode() {
        int result = table_name != null ? table_name.hashCode() : 0;
        result = 31 * result + (region_code != null ? region_code.hashCode() : 0);
        result = 31 * result + (region_name != null ? region_name.hashCode() : 0);
        result = 31 * result + (street_code != null ? street_code.hashCode() : 0);
        result = 31 * result + (street_name != null ? street_name.hashCode() : 0);
        result = 31 * result + (community_code != null ? community_code.hashCode() : 0);
        result = 31 * result + (community_name != null ? community_name.hashCode() : 0);
        result = 31 * result + (court_code != null ? court_code.hashCode() : 0);
        result = 31 * result + (court_name != null ? court_name.hashCode() : 0);
        result = 31 * result + (id != null ? id.hashCode() : 0);
        result = 31 * result + in_out_type;
        result = 31 * result + hour;
        result = 31 * result + (event_time != null ? event_time.hashCode() : 0);
        result = 31 * result + (load_date != null ? load_date.hashCode() : 0);
        return result;
    }

    @Override
    public String toString() {
        return "KafkaBean{" +
                "table_name='" + table_name + '\'' +
                ", region_code='" + region_code + '\'' +
                ", region_name='" + region_name + '\'' +
                ", street_code='" + street_code + '\'' +
                ", street_name='" + street_name + '\'' +
                ", community_code='" + community_code + '\'' +
                ", community_name='" + community_name + '\'' +
                ", court_code='" + court_code + '\'' +
                ", court_name='" + court_name + '\'' +
                ", id='" + id + '\'' +
                ", in_out_type=" + in_out_type +
                ", hour=" + hour +
                ", event_time=" + event_time +
                ", load_date=" + load_date +
                '}';
    }

    private Date load_date;

    public void setTable_name(String table_name) {
        this.table_name = table_name;
    }

    public String getTable_name() {
        return table_name;
    }

    public void setRegion_code(String region_code) {
        this.region_code = region_code;
    }

    public String getRegion_code() {
        return region_code;
    }

    public void setRegion_name(String region_name) {
        this.region_name = region_name;
    }

    public String getRegion_name() {
        return region_name;
    }

    public void setStreet_code(String street_code) {
        this.street_code = street_code;
    }

    public String getStreet_code() {
        return street_code;
    }

    public void setStreet_name(String street_name) {
        this.street_name = street_name;
    }

    public String getStreet_name() {
        return street_name;
    }

    public void setCommunity_code(String community_code) {
        this.community_code = community_code;
    }

    public String getCommunity_code() {
        return community_code;
    }

    public void setCommunity_name(String community_name) {
        this.community_name = community_name;
    }

    public String getCommunity_name() {
        return community_name;
    }

    public void setCourt_code(String court_code) {
        this.court_code = court_code;
    }

    public String getCourt_code() {
        return court_code;
    }

    public void setCourt_name(String court_name) {
        this.court_name = court_name;
    }

    public String getCourt_name() {
        return court_name;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getId() {
        return id;
    }

    public void setIn_out_type(int in_out_type) {
        this.in_out_type = in_out_type;
    }

    public int getIn_out_type() {
        return in_out_type;
    }

    public void setHour(int hour) {
        this.hour = hour;
    }

    public int getHour() {
        return hour;
    }

    public void setEvent_time(Date event_time) {
        this.event_time = event_time;
    }

    public Date getEvent_time() {
        return event_time;
    }

    public void setLoad_date(Date load_date) {
        this.load_date = load_date;
    }

    public Date getLoad_date() {
        return load_date;
    }

}